/**
 * @(#)ApkConfigController.java 2016年12月1日
 * Copyright(C) 2016 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.action;

import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

import org.jsbd.boss.annotation.SystemControllerLog;
import org.jsbd.boss.common.ResponseUtils;
import org.jsbd.boss.dao.IBandwidthInfoDAO;
import org.jsbd.boss.domian.SimulatorApkDownloadConfig;
import org.jsbd.boss.domian.channel.DaemonApkConfig;
import org.jsbd.boss.service.IBandWidthService;
import org.jsbd.boss.service.ISimulatorApkdownloadService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;

/**
 * 
 * 母包apk配置
 * @author <a href="mailto:zhangbinghua@zhexinit.com" >zbh</a>
 * @version 1.0.0
 */
@Controller
@RequestMapping("/bandwidth")
public class BandWidthController {
	public static final Logger LOGGER = LoggerFactory.getLogger(BandWidthController.class);

	@Resource
	private IBandWidthService bandWidthService;

	@RequestMapping(value = "list", method = RequestMethod.GET)
	public String list() {
		return "/bandwidth/configList";
	}


	@RequestMapping(value = "configList")
	@ResponseBody
	public String configPageList() {
		return JSONObject.toJSONString(bandWidthService.getBandWidthInfoList());
	}

}
